package com.example.data.mapper;

import com.example.data.model.Article;
import com.example.page.Pageable;

import java.util.List;

/**
 * Created by hldev on 16-12-1.
 */
public interface ArticleMapper {

    Article findById(Integer id);

    List<Article> findAll();

    List<Article> findPage(Pageable pageable);

    void create(Article article);

    void update(Article article);

    void delete(Integer id);
}
